<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<%@include file="/common/common.jspf" %>
<script type="text/javascript" src="${ctx}/js/qc/cd/cd_edit.js">
</script>
<style type="text/css">
.col-sm-3 {
	width: 20%;
	float: left;
}

.col-sm-9 {
	width: 50%;
	float: left;
}
label[class^="btn btn-default"]{
	margin-top: -4px;
}
</style>
</head>
<body>
	<div class="l_err" style="width: 100%; margin-top: 2px;"></div>
	<form id="form" name="form" class="form-horizontal" method="post"
		  action="${ctx}/cd/editCd.shtml">
		<section class="panel panel-default">
			<div class="panel-body">
				<div class="form-group">
					<label class="col-sm-3 control-label">成品计量质检编号</label>
					<div class="col-sm-9">
						<input type="text" class="form-control"
							   name="productNumForMap.code" id="code" readonly="readonly" value="${user.code}">
					</div>
				</div>
				<div class="line line-dashed line-lg pull-in"></div>
				<div class="form-group">
					<label class="col-sm-3 control-label">订单编号</label>
					<div class="col-sm-9">
                        <input type="text" class="form-control"
                               name="productNumForMap.order_code" id="order_code" readonly="readonly" value="${user.order_code}">
					</div>

				</div>
				<div class="line line-dashed line-lg pull-in"></div>
				<%--<div class="form-group">--%>
				<%--<label class="col-sm-3 control-label">检验项目</label>--%>
				<%--<div class="col-sm-9">--%>
				<%--<input type="text" class="form-control checkName"--%>
				<%--name="productNumForMap.detection_project" id="detection_project">--%>
				<%--</div>--%>
				<%--</div>--%>
				<div class="form-group">
					<label class="col-sm-3 control-label">检验项目</label>
					<div class="col-sm-9">
						<div class="input-group">
							<input type="text" class="form-control" placeholder="" readonly = "readonly"
								   name="productNumForMap.detection_project" id="detection_project" value="${user.detection_project}">
							<span class="input-group-btn">
						<button class="btn btn-info" id="workorder" type="button"
								style="height: 34px;"
								onclick="getDetection();">
							<span class="glyphicon glyphicon-search"></span>
						</button>
					</span>
						</div>
					</div>
				</div>
				<div class="line line-dashed line-lg pull-in"></div>
				<div class="form-group">
					<label class="col-sm-3 control-label">检验时间</label>
					<div class="col-sm-9">
						<input type="date" class="form-control checkName"
							   name="productNumForMap.detection_time" id="detection_time" value="${user.detection_time}">
					</div>
				</div>
				<div class="line line-dashed line-lg pull-in"></div>
				<div class="form-group">
					<label class="col-sm-3 control-label">实际测量数据</label>
					<div class="col-sm-9">
						<input type="text" class="form-control checkName"
							   name="productNumForMap.detection_num" id="detection_num" value="${user.detection_num}">
					</div>
				</div>
				<div class="line line-dashed line-lg pull-in"></div>
				<div class="form-group">
					<label class="col-sm-3 control-label">检验人</label>
					<div class="col-sm-9">
						<input type="text" class="form-control checkName"
							   name="productNumForMap.surveyor" id="surveyor" value="${user.surveyor}">
					</div>
				</div>
				<div class="line line-dashed line-lg pull-in"></div>
				<div class="form-group">
					<label class="col-sm-3 control-label">检验结果</label>
					<div class="col-sm-9">
						<input type="text" class="form-control checkName"
							   name="productNumForMap.detection_results" id="detection_results" value="${user.detection_results}">
					</div>
				</div>

			</div>
			<footer class="panel-footer text-right bg-light lter">
				<button type="submit" class="btn btn-success btn-s-xs">提交</button>
			</footer>
		</section>
	</form>
<script type="text/javascript">
	function getDetection() {
		layer.open({
			title : "检测项目信息列表",
			type : 2,
			area : [ "80%", "80%" ],
			content : rootPath + '/base/getDetection.shtml'
		});
	}
</script>
</body>
</html>